import { IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreatePermissionDto {
  /**
   * 权限名称
   * @example 查看用户列表
   */
  @ApiProperty({
    description: '权限名称',
  })
  @IsString()
  name: string;
  @ApiProperty({
    description: '权限Code',
  })
  @IsString()
  code: string;
  @ApiProperty({
    description: '权限描述',
  })
  @IsString()
  description: string;
}
